<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			document.write("<table border='1'>")
				for(var a = 1; a<10; a++){
					document.write("<tr>")
					for(var i = 1; i<=a; i++){
						document.write("<td>"+a+"*"+i+"="+(a*i)+"</td>")
					}
					for(var k = 9; k>a;k--){
							document.write("<td></td>")
						}
					document.write("</tr>")
				}
			document.write("</table>")
			document.write("<table border='1'>")
			for(var b = 9; b>=1; b--){
				document.write("<tr>")
				
				for(var j = 1; j<=b; j++){
					document.write("<td>"+b+"*"+j+"="+(b*j)+"</td>")
				}
				for(var k = 9; k>b;k--){
							document.write("<td></td>")
						}
				document.write("</tr>")
			}
			document.write("</table>")
			document.write("<table border='1'>")
				for(var a = 1; a<10; a++){
					document.write("<tr>")
					for(var k = 9; k>a;k--){
							document.write("<td></td>")
						}
					
					for(var i = 1; i<=a; i++){
						document.write("<td>"+a+"*"+i+"="+(a*i)+"</td>")
					}
					document.write("</tr>")
				}
			document.write("</table>")
			document.write("<table border='1'>")
				for(var a = 9; a>=1; a--){
					document.write("<tr>")
					for(var k = 9; k>a;k--){
							document.write("<td></td>")
						}
					for(var i = 1; i<=a; i++){
						document.write("<td>"+a+"*"+i+"="+(a*i)+"</td>")
					}
					
					document.write("</tr>")
				}
			document.write("</table>")
		</script>
	</body>
</html>
